//
//  UCPickerView.h
//  HelloCall
//
//  Created by WangYongpeng on 13-8-17.
//
//

#import <UIKit/UIKit.h>

@protocol HCPickerViewDelegate <NSObject>

- (void)userSelectedIndex:(int)index settingItemName:(NSString*)itemName;

@end

@interface HCPickerView : UIView

@property (nonatomic, assign) id<HCPickerViewDelegate> delegate;

- (void)setSelectorWithDelegate:(SEL)selector withDelegate:(id)parent;
//parentView:父窗体，data:数据，cmd：命令，可以设置为相应时发出的命令，默认为0
-(void)addSuperView:(UIView*)parentView data:(NSArray*)dataArray currentSel:(int)currentSel settingItemName:(NSString*)itemName;

@end